<template>
  <el-row class="row">
    <el-col :span="8" style="display: flex; align-items: center">
      <el-col :span="3" @click="isCollapse">
        <el-icon class="icon">
          <Fold />
        </el-icon>
      </el-col>

      <el-col :span="10">
        <!-- <span>{{ m }}</span> -->
        <span>{{ info }}</span>
      </el-col>
    </el-col>
    <el-col :span="2">
      <span>admin</span>
    </el-col>
  </el-row>
</template>

<script lang="ts" setup>
import {
  Fold //隐藏菜单图标
} from '@element-plus/icons-vue'
// import { useRoute } from 'vue-router'
import { ref, onMounted, defineProps, toRefs } from 'vue'
const props = defineProps({
  info: String
})
const { info } = toRefs(props)
// onMounted(() => {
//   console.log('sdasdasdsada', info.value)
// })
// const route = useRoute()
// let m = ref('')
// onMounted(() => {
//   m.value = String(route.meta.title)
//   // console.log(m)
// })
const isCollapse = () => {
  console.log(1)
}
// let wen = ref('')
// onMounted(() => {})
</script>

<style scoped>
.row {
  width: 1700px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon {
  font-size: 40px;
}
</style>
